When converting HTML to text, convert newline to space.
authorrobertl <robertl>
Mon, 19 Jun 2006 20:33:10 +0000 (20:33 +0000)
committerrobertl <robertl>
Mon, 19 Jun 2006 20:33:10 +0000 (20:33 +0000)
util.c

diff --git a/util.c b/util.c
index f0974d4234a443b985c2cf7708f252641b2907f4..cb115058aebef20325e79ee912dedb0918de3ff4 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1194,7 +1194,9 @@ strip_html(const utf_string *in)
                }
                
                if (! tag[0]) {
-                       if (*instr != '\n')
+                       if (*instr == '\n')
+                               *out++ = ' ';
+                       else
                                *out++ = *instr;
                }
                else {